package com.scau.os.deviceManagement;

import com.scau.os.course_manager.bean.PCB;

import java.util.Map;

public class Test {


    public static void main(String[] args) {
        Map<String,Peripheral> per = DeviceUse.peripherals;
        DeviceUse use  = new DeviceUse();
        boolean a = use.allocatePeripheral("A1",10,new PCB());
        System.out.println(a);
        int i = DeviceUse.peripherals.get("C2").getStatus();
        System.out.println(i);
        use.allocatePeripheral("A2",10,new PCB());

    }

}
